#!/usr/bin/python

from django.core.management import setup_environ
import settings
setup_environ(settings)

from deprent.RentDept.models import Property, Offer

print "Propiedades disponibles:"
print "-" * 24
for p in Property.objects.all():
    print p

print "-" * 80

print ""

print "Ofertas disponibles: "
print "-" * 20

for o in Offer.objects.all():
    print "Propiedad   : ",o.property
    print "Fecha inicio: ",o.date_start
    print "Fecha fin   : ",o.date_end
    print "Precio      : ",o.price
    print "Estado      : ",o.status
    print "----"
